package chapter_16_interpreter.classic;

import java.util.Stack;

/**
 * Created by CharloYao on 2017/10/16.
 */
public class Client {


    public static void main(String[] args) {
        Context context = new Context();
        //定义一个语法容器，容纳具体的表达式
        Stack<Expression> stack = new Stack<>();

        //for(;;){
            //进行语法判断，并产生递归调用
        //}

        //产生一个完整的语法树，由各个具体的语法分析进行解析
        Expression expression = stack.pop();

        //具体元素进入场景
        expression.interpreter(context);
    }
}
